﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XuanXiang.Infrastructure.Attr;
using XuanXiang.Infrastructure.Dto.Request;
using XuanXiang.Infrastructure.Dto.Response;
using XuanXiang.Infrastructure.EFCore.MySql;

namespace XuanXiang.Service.Interface
{
    [Provider_]
    public interface I_Log_Service
    {
        /// <summary>
        /// 新增日志
        /// </summary>
        /// <param name="log"></param>
        /// <returns></returns>
        Api_Result_Dto AddLog(SysActionLog log);

        /// <summary>
        /// 新增错误日志
        /// </summary>
        /// <param name="log"></param>
        /// <returns></returns>
        Api_Result_Dto AddErrorLog(SysError log);

        /// <summary>
        /// 获取操作日志
        /// </summary>
        /// <returns></returns>
        Task<Api_Result_Dto> Get_Active_Logs(Infrastructure.Dto.Request.Fenye_Dto dto);
       
        /// <summary>
        /// 获取登录日志
        /// </summary>
        /// <param name="fenye_Dto"></param>
        /// <returns></returns>
        Task<Api_Result_Dto> Get_Login_Log(Fenye_Dto fenye_Dto);

        /// <summary>
        /// 获取所有的错误日志
        /// </summary>
        /// <param name="fenye_Dto"></param>
        /// <returns></returns>
        Task<Api_Result_Dto> Get_Error_Log(Fenye_Dto fenye_Dto);
    }
}
